package cn.lyf.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

//网站分类
@Document("t_blogtype")
public class BlogType {

    @Id
    private String id;
    @Indexed
    private String typename;//博客类别名
    private Integer num;  //该博客类别发布的数量

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "BlogType{" +
                "id='" + id + '\'' +
                ", typename='" + typename + '\'' +
                ", num=" + num +
                '}';
    }
}
